Optimally fast parallel algorithms for preprocessing and pattern matching in one and two dimensions

نویسندگان

  • Richard Cole
  • Maxime Crochemore
  • Zvi Galil
  • Leszek Gasieniec
  • Ramesh Hariharan
  • S. Muthukrishnan
  • Kunsoo Park
  • Wojciech Rytter
چکیده

All algorithms below are optimal alphabet-independent parallel CRCW PRAM algorithms. In one dimension: Given a pattern string of length m for the string-matching problem, we design an algorithm that computes a deterministic sample of a suu-ciently long substring in constant time. This problem used to be a bottleneck in the pattern preprocessing for one-and two-dimensional pattern matching. The best previous time bound was O(log 2 m= log logm). We use this algorithm to obtain the following results. 1. Improving the preprocessing of the constant-time text search algorithm 12] from O(log 2 m= loglog m) to O(loglog m), which is now best possible. 2. A constant-time deterministic string-matching algorithm in the case that the text length n satisses n = (m 1+) for a constant > 0. 3. A simple probabilistic string-matching algorithmthat has constant time with high probability for random input. 4. A constant expected time Las-Vegas algorithm for computing the period of the pattern and all wit-7 Work done while visiting UC Riverside. Supported by the project ALTEC. nesses and thus string matching itself, solving the main open problem remaining in string matching. In two dimensions: Given an m m pattern, we present the rst optimal alphabet-independent parallel algorithm for two-dimensional pattern matching which requires constant-time text processing following O(loglog m)-time preprocessing of the pattern. This algorithm depends upon three new time-and work-optimal results, one of which is the constant-time de-terministic sample computation above. The second is a simple constant-time two-dimensional pattern matching algorithm, given a deterministic sample and two-dimensional witnesses. The best previous optimal two-dimensional text search takes O(loglog m) time 3]. The third is an O(loglog m)-time algorithm that computes two-dimensional witnesses. No optimal parallel algorithm was known before. The best previous algorithm takes O(log m) time and uses O(m 2 log m) operations and more than linear space 1].

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Constant-Time Randomized Parallel String Matching

Given a pattern string of length m for the string matching problem, we design an algorithm that computes deterministic samples of a suuciently long substring of the pattern in constant time. This problem used to be the bottleneck in the pattern preprocessing for one-and two-dimensional pattern matching. The best previous time bound was O(log 2 m= log log m). We use this algorithm to obtain the ...

متن کامل

Improvement and parallelization of Snort network intrusion detection mechanism using graphics processing unit

Nowadays, Network Intrusion Detection Systems (NIDS) are widely used to provide full security on computer networks. IDS are categorized into two primary types, including signature-based systems and anomaly-based systems. The former is more commonly used than the latter due to its lower error rate. The core of a signature-based IDS is the pattern matching. This process is inherently a computatio...

متن کامل

Performance Evaluation of Local Detectors in the Presence of Noise for Multi-Sensor Remote Sensing Image Matching

Automatic, efficient, accurate, and stable image matching is one of the most critical issues in remote sensing, photogrammetry, and machine vision. In recent decades, various algorithms have been proposed based on the feature-based framework, which concentrates on detecting and describing local features. Understanding the characteristics of different matching algorithms in various applications ...

متن کامل

Parallel Vectoring Algorithm for Pattern Matching

The main aim of this study is to propose efficient algorithms for image template matching on parallel machines. To our knowledge there is no a template matching algorithm that converts the template image and all candidate blocks in the source image from two-dimensions into one-dimension. This study proposes a Template Matching Vectoring Algorithm (TMVA) that reduces the amount of data to be ana...

متن کامل

Alphabet-Independent Optimal Parallel Search for Three-Dimensional Patterns

We give an alphabet-independent optimal parallel algorithm for the searching phase of three-dimensional pattern-matching. All occurrences of a three dimensional pattern P of shape mmm in a text T of shape n n n are to be found. Our algorithm works in log m time with O(N= log(m)) processors of a CREW PRAM, where N = n 3. The ideas from 3] are used. Surprisingly, the extension of the two dimensio...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1993